package core.formats
{
	/**
	 * @author Ado
	 */
	public class BinaryHeap
	{
		private var root:Node;
		private var nodes:Array;
		public function BinaryHeap()
		{
			
		}
		public function insertNode(node:Node):void
		{
			nodes.push(node);
			var index:int = nodes.length/2;
			if(nodes.length==1)
			{
				root = node;
			}else{
				node.parent = nodes[index];
			}
		}
		public function delNode(node:Node):void
		{
			
		}
	}
}